#ifndef _FS_ENDIAN_H
#define _FS_ENDIAN_H



/******************************************************************************\
* setup_endian: set up the endianness helper mapping for the running system    *
\******************************************************************************/
void setup_endian();

extern uint16_t (*cpu_to_be16) (uint16_t x);
extern uint32_t (*cpu_to_be32) (uint32_t x);
extern uint64_t (*cpu_to_be64) (uint64_t x);
extern uint16_t (*cpu_to_le16) (uint16_t x);
extern uint32_t (*cpu_to_le32) (uint32_t x);
extern uint64_t (*cpu_to_le64) (uint64_t x);

#if 0
#define be16_to_cpu cpu_to_be16
#define be32_to_cpu cpu_to_be32
#define be64_to_cpu cpu_to_be64
#define le16_to_cpu cpu_to_le16
#define le32_to_cpu cpu_to_le32
#define le64_to_cpu cpu_to_le64
#endif


#endif /* _FS_ENDIAN_H */

